package com.jxc.jxc01.yk.entity;

import java.util.Objects;

/**
 * 客户
 */
public class Customer {
    private int id;
    //姓名
    private String customername;
    //电话
    private String phone;
    //地址
    private String address;
    //邮箱
    private String mail;
    //传真号
    private int fax;
    //创建时间
    private String createcustomer_time;
    //银行
    private String bank;

    public Customer() {
    }

    public Customer(int id, String customername, String phone, String address, String mail, int fax, String createcustomer_time, String bank) {
        this.id = id;
        this.customername = customername;
        this.phone = phone;
        this.address = address;
        this.mail = mail;
        this.fax = fax;
        this.createcustomer_time = createcustomer_time;
        this.bank = bank;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return customername
     */
    public String getCustomername() {
        return customername;
    }

    /**
     * 设置
     * @param customername
     */
    public void setCustomername(String customername) {
        this.customername = customername;
    }

    /**
     * 获取
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取
     * @return address
     */
    public String getAddress() {
        return address;
    }

    /**
     * 设置
     * @param address
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 获取
     * @return mail
     */
    public String getMail() {
        return mail;
    }

    /**
     * 设置
     * @param mail
     */
    public void setMail(String mail) {
        this.mail = mail;
    }

    /**
     * 获取
     * @return fax
     */
    public int getFax() {
        return fax;
    }

    /**
     * 设置
     * @param fax
     */
    public void setFax(int fax) {
        this.fax = fax;
    }

    /**
     * 获取
     * @return createcustomer_time
     */
    public String getCreatecustomer_time() {
        return createcustomer_time;
    }

    /**
     * 设置
     * @param createcustomer_time
     */
    public void setCreatecustomer_time(String createcustomer_time) {
        this.createcustomer_time = createcustomer_time;
    }

    /**
     * 获取
     * @return bank
     */
    public String getBank() {
        return bank;
    }

    /**
     * 设置
     * @param bank
     */
    public void setBank(String bank) {
        this.bank = bank;
    }

    public String toString() {
        return "Customer{id = " + id + ", customername = " + customername + ", phone = " + phone + ", address = " + address + ", mail = " + mail + ", fax = " + fax + ", createcustomer_time = " + createcustomer_time + ", bank = " + bank + "}";
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Customer customer = (Customer) o;
        return id == customer.id && phone == customer.phone && fax == customer.fax && Objects.equals(customername, customer.customername) && Objects.equals(address, customer.address) && Objects.equals(mail, customer.mail) && Objects.equals(createcustomer_time, customer.createcustomer_time) && Objects.equals(bank, customer.bank);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, customername, phone, address, mail, fax, createcustomer_time, bank);
    }
}
